build: Add new gcc error flags
authorBenjamin Otte <otte@redhat.com>
Sat, 26 Jan 2019 14:09:55 +0000 (15:09 +0100)
committerBenjamin Otte <otte@redhat.com>
Mon, 15 Apr 2019 12:40:25 +0000 (14:40 +0200)
commitdff9a5a195c8d349908ace3121c0da1befadf060
tree135446c17f02bf571cc33455c1370ecbb1ee086e
parentb9fb2f0933b76c8228ab2163016b345e61175c46
build: Add new gcc error flags

These flags check for code that we don't want to write, so turn them
into error flags.

Variable length arrays should be replaced by malloc() - or explicit
alloca() calls if you know what you're doing.

Implicit fallthrough should be replaced by explicit fallthrough with the
usage of G_GNU_FALLTHROUGH.

This work inspired by Kees Cook's LCA2019 talk:
https://www.youtube.com/watch?v=FY9SbqTO5GQ
http://outflux.net/slides/2019/lca/danger.pdf
meson.build